using SqlSugar;

namespace ByteSite.Entitys
{
    /// <summary>
    /// 用户随机码表
    /// </summary>
    public class dt_user_code
    {
        /// <summary>
        /// 用户随机码表
        /// </summary>
        public dt_user_code()
        {
        }

        /// <summary>
        /// 自增ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 id { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public System.Int32? user_id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public System.String user_name { get; set; }

        /// <summary>
        /// 生成码类别 password取回密码,register邀请注册
        /// </summary>
        public System.String type { get; set; }

        /// <summary>
        /// 生成的字符串
        /// </summary>
        public System.String str_code { get; set; }

        /// <summary>
        /// 使用次数
        /// </summary>
        public System.Int32? count { get; set; }

        /// <summary>
        /// 状态0未使用1已使用
        /// </summary>
        public System.Int32? status { get; set; }

        /// <summary>
        /// 用户IP
        /// </summary>
        public System.String user_ip { get; set; }

        /// <summary>
        /// 有效时间
        /// </summary>
        [Newtonsoft.Json.JsonConverter(typeof(Common.TcDateTimeConverter))]
        public System.DateTime eff_time { get; set; }

        /// <summary>
        /// 生成时间
        /// </summary>
        [Newtonsoft.Json.JsonConverter(typeof(Common.TcDateTimeConverter))]
        public System.DateTime add_time { get; set; }
    }
}